package demo07_xml_annotation.config;

import demo07_xml_annotation.xml.RoleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by ztt on 2017/9/17.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {AllConfig.class})
public class MainTest {

    @Autowired
    private RoleService roleService;

    @Test
    public void run(){
        roleService.get();
    }
}
